{include file="layout/layout" /}
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>商户管理 - 修改商户信息</h3>
                <h5>商城系统商户信息</h5>
            </div>
        </div>
    </div>
    <form action="shopUpd?act=u" method='post' enctype="multipart/form-data">
    <input type="hidden" name="sp_id" value="{:input('param.id')}">
    <div class="ncap-form-default">
        <dl class="row">
            <dt class="tit">
                <label>店铺名称</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_name" value="{$shop.sp_name}" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>手机号</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_mobile" value="{$shop.sp_mobile}" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>店主姓名</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_true_name" value="{$shop.sp_true_name}" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>公司名称</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_company" value="{$shop.sp_company}" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>公司法人</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_legal_person" value="{$shop.sp_legal_person}" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>营业执照编号</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_bus_license" value="{$shop.sp_bus_license}" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label class="code_url">营业执照</label>
            </dt>
            <dd class="opt">
                {if $shop.sp_bus_license_url}
                    <a href="__ROOT__{$shop.sp_bus_license_url}"><img src="__ROOT__{$shop.sp_bus_license_url}" width='150' height='auto' title='点击查看图片'></a>
                {else/}
                    <input class="input-txt valid" name="image" type="file">
                {/if}
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户电话</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_phone" value="{$shop.sp_phone}" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>所属区域</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="" value="{$shop.merger_name}" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户地址</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_address" value="{$shop.sp_address}" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户分类</label>
            </dt>
            <dd class="opt">
                <select name="sp_tyid" id="" required>
                    <option value="0">—— 请选择 ——</option>
                    {foreach $cates as $k=>$v}
                    <option value="{$v.ty_id}" {if $shop.sp_tyid==$v.ty_id}selected{/if}>{$v.ty_name}</option>
                    {/foreach}
                </select>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>代理商</label>
            </dt>
            <dd class="opt">
                <select name="sp_agem_id" id="" required>
                    <option value="0">—— 请选择 ——</option>
                    {foreach $agents as $k=>$v}
                    <option value="{$v.agem_id}" {if $shop.sp_agem_id==$v.agem_id}selected{/if}>{$v.agem_principals}</option>
                    {/foreach}
                </select>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>状态</label>
            </dt>
            <dd class="opt">
                <input value="1" name="sp_status" id="gender" type="radio" {if $shop.sp_status==1}checked{/if}>
                <label for="gender">正常</label>
                <input value="2" name="sp_status" id="gender" type="radio" {if $shop.sp_status==2}checked{/if}>
                <label for="gender">禁用</label>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>APPID</label>
            </dt>
            <dd class="opt"><strong class="red">{$shop.sp_appid}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>OpenID</label>
            </dt>
            <dd class="opt"><strong class="red">{$shop.sp_openid}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>营业时间</label>
            </dt>
            <dd class="opt">
                <input type="time" name="sp_start_time" value="{$shop.sp_start_time}"> ~ <input type="time" name="sp_end_time" value="{$shop.sp_end_time}">
            </dd>
        </dl>
        {if $shop.sp_audit}
        <dl class="row">
            <dt class="tit">
                <label>审核时间</label>
            </dt>
            <dd class="opt"><strong class="red">{$shop.sp_audit_time|date='Y-m-d H:i:s'}</strong></dd>
        </dl>
        {/if}
        <dl class="row">
            <dt class="tit">
                <label>审核</label>
            </dt>
            <dd class="opt">
                <div class="onoff">
                    <label for="is_distribut1" class="cb-enable{if $shop.sp_audit==1} selected{/if}"><span>允许</span></label>
                    <label for="is_distribut2" class="cb-disable{if $shop.sp_audit==-1} selected{/if}"><span>拒绝</span></label>
                    <input id="is_distribut1" {if $shop.sp_audit!=1}name="sp_audit"{/if} value="1" type="radio" >
                    <input id="is_distribut2" {if $shop.sp_audit!=-1}name="sp_audit"{/if} value="-1" type="radio" >
                </div>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>最近登录时间</label>
            </dt>
            <dd class="opt"><strong class="red">{$shop.sp_login_time|date='Y-m-d H:i:s'}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>注册时间</label>
            </dt>
            <dd class="opt"><strong class="red">{$shop.sp_create_time|date='Y-m-d H:i:s'}</strong></dd>
        </dl>
        <div class="bot"><button id="button" style="width:96px;height:35px;background: #4FC0E8;border-radius:5px;line-height:35px;text-align: center;color:#fff;border: 0;font-size: 15px;">确认提交</button></div>
    </div> 
    </form>
</div>
<!-- <script type="text/javascript">
     $('#mobile').blur(function(){
            var v = $(this).val();
             if(!(/^1[34578]\d{9}$/.test(v))){
                $(this).next().next().html("<font color='red'>不合法</font>");
                $('#button').attr("disabled",true);
            }else{
                $(this).next().next().html("<font color='green'>正确</font>");
                $('#button').attr("disabled",false);
            }
        })
</script> -->

</body></html>